{include file="public/header" /}
</head>
<body>
<form class="layui-form layui-form-pane" action="" style="padding: 20px;">
    <input type="hidden" name="substation_id" value="{$dataInfo.substation_id|default=0}">
    <div class="layui-form-item">
        <label class="layui-form-label">分站名称</label>
        <div class="layui-input-block">
            <input type="text" name="substation_name" required lay-verify="required"  placeholder="请输入分站名称" autocomplete="off" class="layui-input" value="{$dataInfo.substation_name|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">分站域名</label>
        <div class="layui-input-block">
            <input type="text" name="substation_domain"  required lay-verify="required"   placeholder="请输入分站域名" autocomplete="off" class="layui-input" value="{$dataInfo.substation_domain|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人</label>
        <div class="layui-input-block">
            <input type="text" name="substation_contacts"   placeholder="请输入联系人" autocomplete="off" class="layui-input" value="{$dataInfo.substation_contacts|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人手机</label>
        <div class="layui-input-block">
            <input type="text" name="substation_contacts_tel" placeholder="请输入联系人手机" autocomplete="off" class="layui-input" value="{$dataInfo.substation_contacts_tel|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="button" lay-submit lay-filter="formDemo">立即提交</button>
        </div>
    </div>
</form>
</body>
<script>
    layui.use('form', function(){
        var form = layui.form;
        form.render();
        //监听提交
        form.on('submit(formDemo)', function(data){
            post_sub("{:url('Systems/substationAdd')}",data.field);
            return false;
        });
    });
</script>
</html>